import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import reader1 from '@/components/reader1'
import readerInfo from '@/components/readerInfo'
import writer1 from '@/components/writer1'
import writerInfo from '@/components/writerInfo'
import bookCategory from '@/components/bookCategory'
import booklist from '@/components/booklist'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/2',
      name: 'reader1',
      component: reader1
    },
    {
      path: '/readerInfo',
      name: 'readerInfo',
      component: readerInfo
    },
    {
      path: '/3',
      name: 'writer1',
      component: writer1
    },
    {
      path: '/writerInfo',
      name: 'writerInfo',
      component: writerInfo
    },
    {
      path: '/1-1',
      name: 'bookCategory',
      component: bookCategory
    },
    {
      path: '/1-2',
      name: 'booklist',
      component: booklist
    }
  ]
})
